﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhao.Models.DTO
{
    // 基类：查询类（包含所有查询时需要的字段）
    public class AdminDto
    {
        public int Id { get; set; }
        public string uName { get; set; }
        public string email { get; set; }
        public bool status { get; set; }
        public string? rName { get; set; }
        public int role { get; set; }
        public DateTime? lastatTime { get; set; }
        public string? lastIp { get; set; }
        public string fName { get; set; }
        public string phone { get; set; }
        public string? venueName { get; set; }
        public string? img {  get; set; }
        public string LicenseImage { get; set; }
    }

    /// <summary>
    /// 添加或修改类：继承查询类，扩展密码字段
    /// </summary>
    public class AdminAddDto : AdminDto
    {
        /// <summary>
        /// 旧密码
        /// </summary>
        public string paw { get; set; }

        /// <summary>
        /// 新密码（用于添加或修改）
        /// </summary>
        public string newPaw { get; set; }
        /// <summary>
        /// 球馆Id
        /// </summary>
        public Guid? venueId { get; set; }
        /// <summary>
        /// 是否属于球馆的管理员
        /// </summary>
        public bool isArenaAdmin { get; set; }
    }



}
